package cn.xydpeng.springframework.aop.support;

import cn.xydpeng.springframework.aop.MethodMatcher;

import java.lang.reflect.Method;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/21
 * @description:
 */
public abstract class StaticMethodMatcher implements MethodMatcher {
    @Override
    public boolean isRuntime() { return false; }

    @Override
    public final boolean matches(Method method, Class<?> targetClass, Object... args) {
        // should never be invoked because isRuntime() returns false
        throw new UnsupportedOperationException("Illegal MethodMatcher usage");
    }
}
